<%@page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>Insert title here</title>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<%@ include file="/commons/commonList.jsp"%>
<script type="text/javascript">
	var currentId = null;
	function openAddCheckRecord(){ //调用父页面得 添加回访登记
		parent.openAddCheckRecord();
	}

	function openAside(){ //调用父页面得 回访作废
		if(currentId == null){
			Alert("请选择您要作废得记录");
			return;
		}
		AskConfirm("您确认作废该条记录吗？","checkRecordInfoList","aside");
	}
	function aside(){ //作废回访记录
		parent.openAside(currentId);
	}

   function resize(){
		parent.window.document.all('checkRecordInfoList').style.height=document.body.scrollHeight;
	}

</script>
</head>
<body onload="resize();">
<div style="overflow:auto; height:250px;">

  <ec:ceTable items="checkRecordList"
	action="${ctx}/customerService_CheckRecordAction.do?method=queryReturnVisitRecordByPage&customerServiceEventID=${customerServiceEventID}"
	var="checkRecordItem"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="10" >
	<ec:ceRow styleClass="grid"
		onclick="currentId=${checkRecordItem.keyword}"
		ondblclick="parent.openDetail('${checkRecordItem.keyword}');"
		onContextMenu="return ShowContextMenu(event,'quick_rightmenu');">
		<ec:ceColumn headerCell="pmsHeadrCell" title="事件编号" property="eventNo" sortable="false" width="13%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="详细地点" property="fullAddress" sortable="false" width="10%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="房 号" property="houseNumber" sortable="false" width="10%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="联系人" property="client" sortable="false" width="10%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="状态" property="validity" sortable="false" width="10%">
			<c:choose>
				<c:when test="${checkRecordItem.validity eq '1'}">正常</c:when>
				<c:when test="${checkRecordItem.validity eq '0'}">作废</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="回访人" property="recorder" sortable="false" width="10%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="回访时间" property="recordTime" sortable="false" width="15%"/>
	</ec:ceRow>
</ec:ceTable>
</div>
<!--------------------右键1---------------------->
<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_rightmenu">
  <table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
      <pms:AuthTag authName="customerService_CheckRecordAction.do?method=nvigateAddReturnVisit">
        <tr>
         <td class="quickMenu_toolbarico">
         	<a href="#"  onClick="openAddCheckRecord();"onFocus="this.blur()">
         		<img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增"/>&nbsp;新 增
         	</a>
         </td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="customerService_CheckRecordAction.do?method=nvigateAside">
        <tr>
          <td class="quickMenu_toolbarico">
          	<a href="#" onFocus="this.blur()" onClick="openAside();">
          		<img src="${ctx}/images/ico_delete.gif" alt="删除" border="0" align="absbottom"/>&nbsp;作 废
          	</a>
          </td>
          </tr>
        </pms:AuthTag>
  </table>
  </td>
          </tr>
  </table>
 <script type="text/javascript">

	var checkRecordDiv=document.getElementById('quick_rightmenu');
	if(checkRecordDiv.getElementsByTagName("tr").length==1){
	checkRecordDiv.innerHTML="";
	}
</script>
</div>
</body>
</html>